#include <QCoreApplication>
#include <iostream>
using namespace std;
int main()
{
 int R, d, e;
 cout<<"R=";
 cin>>R;
e=R%10;
d=R/10;
 cout<<"Proizv="<<d*e<<"\nSymma="<<e+d<<endl;
 return 0;
}
